import Cookies from 'js-cookie'

// token
const TokenKey = 'hrsaas-ihrm-token'
// 时间戳
const timeKey = 'hrsaas-timestamp-key'

// 获取token
export function getToken() {
  return Cookies.get(TokenKey)
}
// 设置token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 清空token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 获取时间戳
export function getTimeStamp() {
  return Cookies.get(timeKey)
}
// 设置时间戳
export function setTimeStamp(time) {
  return Cookies.set(timeKey, time)
}
